package xiaojian.toolkit.netty.handler.codec.http.request;

import io.netty.channel.Channel;

import xiaojian.toolkit.util.Identifier;
import xiaojian.toolkit.util.MutableIdentifyable;

public class UncompletedHttpRequest<T> implements MutableIdentifyable<T> {

	private Identifier<T> identifier = null;

	private String uri;
	private long contentLength;
	private int received;
	private Channel channel;

	public String getUri() {
		return uri;
	}

	public void setUri(String uri) {
		this.uri = uri;
	}

	public long getContentLength() {
		return contentLength;
	}

	public void setContentLength(long contentLength) {
		this.contentLength = contentLength;
	}

	public int getReceived() {
		return received;
	}

	public void setReceived(int received) {
		this.received = received;
	}

	public Channel getChannel() {
		return channel;
	}

	public void setChannel(Channel channel) {
		this.channel = channel;
	}

	@Override
	public String toString() {
		return "UncompletedHttpRequest{" + "uri='" + uri + '\'' + ", contentLength=" + contentLength + ", received="
				+ received + '}';
	}

	@Override
	public Identifier<T> getIdentification() {
		return identifier;
	}

	@Override
	public void setIdentification(Identifier<T> id) {
		this.identifier = id;
	}

	

}
